package cate.common.table.pvp.crossboss;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("领主配置")
public class CrossBossMonsterRow extends ERow {


    @NoteField("领主ID")
    public int bossTid;

    @NoteField("原型ID")
    public int protoId;

    @NoteField("难度")
    public int difficulty;

    @NoteField("备注")
    public String name;

    @NoteField("挑战消耗")
    public String cost;

    @NoteField("怪物方实例")
    public String dynInsCode;

    @NoteField("怪物方二队实例")
    public String dynInsCode2;

    @NoteField("怪物方三队实例")
    public String dynInsCode3;

    @NoteField("队长击杀奖励")
    public String leaderRwdStr;

    @NoteField("全队击杀奖励分组")
    public int teamRwdGroup;

    @NoteField("稀有奖励分组")
    public int rareRwdGroup;

    @NoteField("稀有奖励概率")
    public int rareRwdChance;

    @NoteField("领主技能")
    public int skill;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("领主ID", -1);
        this.bossTid = xrw.getInteger("领主ID", -1);
        this.protoId = xrw.getInteger("原型ID", 0);
        this.difficulty = xrw.getInteger("难度", -1);
        this.name = xrw.getString("备注");
        this.cost = xrw.getString("挑战消耗");
        this.dynInsCode = xrw.getString("一队怪物实例");
        this.dynInsCode2 = xrw.getString("二队怪物实例");
        this.dynInsCode3 = xrw.getString("三队怪物实例");
        this.leaderRwdStr = xrw.getString("队长击杀奖励");
        this.teamRwdGroup = xrw.getInteger("全队击杀奖励分组", 0);
        this.rareRwdGroup = xrw.getInteger("稀有奖励分组", 0);
        this.rareRwdChance = xrw.getInteger("稀有奖励概率", 0);
        this.skill = xrw.getInteger("领主技能", 0);
    }
}
